package com.hitqz.robot.camera.schedule;

import com.hitqz.robot.camera.netty.PelcodMessage;
import com.hitqz.robot.camera.util.PelcodCacheUtil;
import com.hitqz.robot.camera.util.PelcodCameraToolkit;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class PelcodSchedule {

//    //每两分钟查询一次，保活
//    @Scheduled(fixedDelay = 1000*60*2)
//    private void queryStatus() {
//        try {
//            float pan = PelcodCameraToolkit.getPan();
//            float tilt = PelcodCameraToolkit.getTilt();
//            log.info("[pelcod] pan:{} tilt:{}",pan,tilt);
//        } catch (Exception e) {
//            log.info("[pelcod]query status error", e);
//        }
//    }


}
